package com.mycompany.app.testsuite.mail;

import org.springframework.mail.SimpleMailMessage;

import com.mycompany.app.common.mail.MailEngine;
import com.mycompany.app.testsuite.BaseTestUtils;
import com.mycompany.app.util.SpringUtils;

public class MailEngineTest extends BaseTestUtils{

    public static void main(String[] args) {

        MailEngine me=SpringUtils.getMailEngine();
        
        SimpleMailMessage message=new SimpleMailMessage();
        message.setFrom("shawn.guo@bearingpoint.com");
        message.setTo("guoxu1232@gmail.com");
        message.setSubject("send using javamail");
        message.setText("hello world");
        me.send(message);
        System.out.println("send ok");
    }
}
